powered by
Geometric mean and harmonic mean functions
geomean(x) harmean(x)
numeric vector
numeric scalar. For geomean, this is the geometric mean of x; for harmean, this is the harmonic mean of x.
geomean
x
harmean
# NOT RUN { geomean(10^(1:10)) #[1] 316227.8 harmean(10^(1:10)) #[1] 90 # }
Run the code above in your browser using DataLab